#ifndef FRONTIEREGRAPHICS_H
#define FRONTIEREGRAPHICS_H

#include <QGraphicsItem>

class Frontiere;
class Etat;

/**
 * @author CARON LOPEZ
 * @brief Representation graphique d'une frontière (n'affiche rien)
 *
 */
class FrontiereGraphics : public QObject, public QGraphicsItem
{
    Q_OBJECT
    Q_INTERFACES(QGraphicsItem)

public:
    FrontiereGraphics(Frontiere *frontiere);

    enum { Type = UserType + 2 };
    int type() const { return Type; }


    Frontiere *getFrontiere(){
        return frontiere;
    }

public slots:
    virtual void adjust();

protected:
    Frontiere *frontiere;

    QRectF boundingRect() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
};

#endif // FRONTIEREGRAPHICS_H
